<?php
/**
 * See the enclosed file license.txt for licensing information.
 * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html
 *
 * @copyright   The XOOPS project http://www.xoops.org/
 * @license     http://www.fsf.org/copyleft/gpl.html GNU General Public License (GPL)
 * @package     installer
 * @since       2.3.0
 * @author      Haruki Setoyama  <haruki@planewave.org>
 * @author      Kazumi Ono <webmaster@myweb.ne.jp>
 * @author      Skalpa Keo <skalpa@xoops.org>
 * @author      Taiwen Jiang <phppp@users.sourceforge.net>
 * @author      DuGris (aka L. JEN) <dugris@frxoops.org>
 * @version     $Id: page_modcheck.php 2184 2008-09-28 21:29:07Z julionc $
**/

require_once 'common.inc.php';
if ( !defined('XOOPS_INSTALL') ) { die('XOOPS Installation wizard die'); }

$wizard->setPage( 'modcheck' );
$pageHasForm = false;
$diagsOK = false;

$wizard->ext_loaded();
ob_start();
?>
<table class="diags">
<caption><?php echo REQUIREMENTS; ?></caption>
<thead><tr><th colspan='2'></th></tr></thead>
<tfoot><tr><td colspan='2'></td></tr></tfoot>
<tbody>
<tr>
	<th><?php echo SERVER_API; ?></th>
	<td><?php echo php_sapi_name(); ?><br /> <?php echo $_SERVER["SERVER_SOFTWARE"]; ?></td>
</tr>

<tr>
	<th><?php echo _PHP_VERSION; ?></th>
	<td><?php echo xoPhpVersion(); ?></td>
</tr>

<tr>
	<th><?php printf( PHP_EXTENSION, 'MySQL' ); ?></th>
	<td><?php echo xoDiag( function_exists( 'mysql_connect' ) ? 1 : -1, @mysql_get_client_info() ); ?></td>
</tr>

<tr>
	<th><?php printf( PHP_EXTENSION, 'Session' ); ?></th>
	<td><?php echo xoDiag( extension_loaded( 'session' ) ? 1 : -1 ); ?></td>
</tr>

<tr>
	<th><?php printf( PHP_EXTENSION, 'PCRE' ); ?></th>
	<td><?php echo xoDiag( extension_loaded( 'pcre' ) ? 1 : -1 ); ?></td>
</tr>

<tr>
	<th scope="row">file_uploads</th>
	<td><?php echo xoDiagBoolSetting( 'file_uploads', true ); ?></td>
</tr>
</tbody>
</table>

<table class="diags">
<caption><?php echo RECOMMENDED_EXTENSIONS; ?></caption>
<thead>
	<tr><th colspan="2"><div class='confirmMsg'><?php echo RECOMMENDED_EXTENSIONS_MSG; ?></div></th></tr>
</thead>
<tfoot><tr><td colspan='2'></td></tr></tfoot>
<tbody>
<?php
foreach ( $wizard->extensions as $key => $value) {
	echo "<tr><th>" . $value[1] . "</tg><td>" . $value[2] . "</td></tr>";
}
?>

</tbody>
</table>
<?php
$content = ob_get_contents();
ob_end_clean();

include 'install_tpl.php';
?>
